﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ResetMessage.aspx.cs" Inherits="ResetMessage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>RailWay Reservation</title>
    <style type="text/css" >
        #content_wait
        {
            margin: auto;
            padding:20px;                      
            width: 600px;
            background: #99cc99;
            border: 1px solid #0099ff;
            border-radius: 10px;
            box-shadow: 10px 10px 20px #666;
	        -moz-box-shadow: 10px 10px 20px #666;
	        -webkit-boxshadow: 10px 10px 20px #666;
        }
        a
        {
            text-decoration: none;
        }
        a:hover
        {
            color: #FF0000;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="content_wait">
        <span style="font-size: 16pt; color: #ff0033"><strong>Message from system </strong>
        </span>
        <hr style="color: #3399ff" />
        <p>
            System has sent a new password to email
            <asp:Label ID="lblEmail" runat="server" Font-Bold="True" Font-Italic="True" ForeColor="Red"></asp:Label>.
            Please, you check mail to get new password. Thank you!</p>
        <p>
            Website will automatically go to page authentication after <span style="color: #ff0033"
                id="spanWarning">10</span> seconds!<br />
        </p>
        <p>
            <a href="Logout.aspx">Click here</a> &nbsp;if you waiting.</p>
    </div>
    <script type="text/javascript">
        var intCallbackTime = 10;
        var back_URL = "Logout.aspx";
        function runTimeWarning() {
            if (intCallbackTime == 0) {
                window.location.href = back_URL;
            }
            else {
                document.getElementById("spanWarning").innerHTML = intCallbackTime;
                intCallbackTime = intCallbackTime - 1;
                setTimeout("runTimeWarning()", 900);
            }
        }
        runTimeWarning();
    </script>
    </form>
</body>
</html>
